import {
    createRouter,
    createWebHashHistory,
} from "vue-router";
import {routes} from './routes'


const router = createRouter({
    history:createWebHashHistory(),
    routes
})

router.beforeEach((to, _from, next) => {
    if (to.meta.title) {
        document.title = to.meta.title as string
    }
    next()
})

export default router